#include "TabWidget.h"
#include "ui_TabWidget.h"

TabWidget::TabWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::TabWidget)
{
    ui->setupUi(this);
    InitTabWidget();
}

TabWidget::~TabWidget()
{
    delete ui;
}

void TabWidget::InitTabWidget()
{
    m_pRecommendedWidget = new RecommendedWidget(ui->tabTuiJian);
    ui->verticalLayout0->addWidget(m_pRecommendedWidget);
    m_pSongListWidget = new SongListWidget(ui->tabGeDan);
    ui->verticalLayout1->addWidget(m_pSongListWidget);
    m_pHostStationWidget = new TheHostStationWidget(ui->tabZhuBoDianTai);
    ui->verticalLayout2->addWidget(m_pHostStationWidget);
    m_pRankingWidget = new RankingWidget(ui->tabPaiHangBang);
    ui->verticalLayout3->addWidget(m_pRankingWidget);
    m_pSingerWidget = new SingerWidget(ui->tabGeShou);
    ui->verticalLayout4->addWidget(m_pSingerWidget);
    m_pNewMusicWidget = new NewMusicWidget(ui->tabNewMusic);
    ui->verticalLayout5->addWidget(m_pNewMusicWidget);
}
